<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<c:set var="svr" value="${pageContext.request.serverName}" /> 
<c:set var="port" value="${pageContext.request.serverPort}" /> 
<html>
<head>
   <style type="text/css">
	   label {
	      width:150px;  
	      float:left;
	   }
   </style>
</head>
<body>


<h1>Servers are:</h1>

<ul>
   <c:forEach var="server" items="${serverList}">
      <li><a href="http://${svr}:${port}/dbmaint/serverDetails?server=${server.serverName}">${server.serverName}</a></li>
   </c:forEach>
</ul>   

<br>
<br>
Add a new server:
<form>
   <div class="field_container"><label>Server name:</label> <input type="text" name="serverName"></div>
   <div class="field_container"><label>Port:</label> <input type="text" name="port"></div>
   <div class="field_container"><label>Vendor:</label> 
      <select name="vendor">
         <option value="sqlserver">SQL Server</option>
         <option value="postgres">Postgres</option>
      </select>
   </div>
   <div class="field_container"><label>Master database:</label> <input type="text" name="masterDatabaseName"></div>
   <div class="field_container"><label>Admin User:</label> <input type="text" name="user"></div>
   <div class="field_container"><label>Admin Password:</label> <input type="text" name="password"></div>
   <input type="submit" value="Submit">
   
</form>

</body>
</html>

